{template 'common/header'}
<div class='container' style='padding:0 5px 10px;margin:0;width:100%'>
<ul class="nav nav-tabs">
<li {if $op == 'display'}class="active"{/if}><a href="{php echo $this->createWebUrl('resumes',array('op'=>'display'));}">简历管理</a>
</li>
</ul>

{if $op =='display'}
<div class="panel panel-info">
	<div class="panel-heading">筛选</div>
	<div class="panel-body">
        <form role="form" class="form-horizontal" method="get" action="./index.php">
        <input type="hidden" name="m" value="amouse_job" >
        <input type="hidden" name="do" value="resumes" >
        <input type="hidden" name="c" value="site" />
        <input type="hidden" name="a" value="entry" />
        <input type="hidden" value="display" name="op">
		<div class="form-group">
			<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">关键字</label>
			<div class="col-sm-8">
			 <input type="text" placeholder="搜索关键字" value="{$_GPC['keyword']}" id="" name="keyword" class="form-control">
			</div>				
		</div>
		<div class="form-group">                             g
			<div class="pull-right col-xs-12 col-sm-2 col-lg-1">
				<button class="btn btn-block"><i class="fa fa-search"></i> 搜索</button>
			</div>
		</div>
		</form>
	</div>
</div>

<div style="padding:15px;">
	<form id="form2" class="form-horizontal">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
					<th style="width:100px;">全选</th>
					<th>品牌名称</th>
					<th>官网地址</th>
					<th>添加时间</th>
					<th>品牌图片</th>
					<th style="width:150px;">操作</th>
				</tr>
			</thead>
			<tbody>
				{loop $list $v}
				<tr>
					<td>
						<input type="checkbox" value="{$v['id']}" name="delete[]">
					</td>
					<td>
						<a title="{$v['title']}" href="javascript:;" >{php echo cutstr($v['title'],30)}</a>
					</td>
					<td><a href="{$v['officialweb']}" target="_blank">{$v['officialweb']}</a></td>
					<td>{php echo date('Y-m-d H:i',$v['createtime'])}</td>
					<td  class="qrcode">
						<img src="{$_W['attachurl']}{$v['logo']}" height="45px" width="45px" />
					</td>
					<td>
					<a href="{php echo $this->createWebUrl('resumes', array('op' => 'audit', 'id' => $v['id']))}" title="审核" class="btn btn-mini btn-primary"><i class="fa fa-edit"></i></a>
					<a onclick="return confirm('此操作不可恢复，确认吗？'); return false;" href="{php echo $this->createWebUrl('resumes', array('id' => $v['id'],'op'=>'del'))}" title="删除" class="btn btn-mini btn-danger"><i class="fa fa-times"></i></a>
					</td>				
				</tr>
				{/loop}
				<tr >
				<td><input type="checkbox"  onclick="var ck = this.checked;$(':checkbox').each(function(){this.checked = ck});" name=''>    
				<input class="btn btn-primary" type="submit" value="删除" name="submit" ></td><td></td><td></td><td></td>
				</tr>
			</tbody>
		</table>
        <div style="margin:0 auto;margin-right: auto;vertical-align: middle;text-align: center;" >
            {$pager}
        </div>
		<input type="hidden" value="resumes" name="do">
		<input type="hidden" value="del" name="op">
		<input type="hidden" name="token" value="{$_W['token']}" />
		</form>

	<script>
		 $('#form2').submit(function(){
			if($(":checkbox[name='delete[]']:checked").size() > 0){
				return confirm('删除后不可恢复，您确定删除吗？');
			}
			return false;
		}); 
	</script>
</div>
{/if}
</div>
{template 'tmpl/footer'}